using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace StudentManagementApplication.Business
{
    public class ClassService
    {
        private DAO.ClassDAO classDAO = new DAO.ClassDAO();
        public void InsertClass(Entities.Class _class)
        {
            classDAO.InsertClass(_class);
        }

        public void UpdateClass(Entities.Class _class)
        {
            classDAO.UpdateClass(_class);
        }

        public void DeleteClass(string sClassID)
        {
            classDAO.DeleteClass(sClassID);
        }

        public Entities.Class GetClassByClassID(string sClassID)
        {
            return classDAO.GetClassByClassID(sClassID);
        }

        public List<Entities.Class> GetClassByCourseID(string sCourseID)
        {
            return classDAO.GetClassByCourseID(sCourseID);
        }

        public List<Entities.Class> GetAllClasses()
        {
            return classDAO.GetAllClasses();
        }

        public DataTable GetAllStudentsOfClass(string sClassID,string sStaffID)
        {
            return classDAO.GetAllStudentsOfClass(sClassID, sStaffID);
        }
    }
}
